<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:67:"/var/www/html/wkyx/public/../application/index/view/admin/user.html";i:1535937173;s:70:"/var/www/html/wkyx/public/../application/index/view/common/header.html";i:1534900110;s:70:"/var/www/html/wkyx/public/../application/index/view/common/footer.html";i:1532576206;}*/ ?>

<!DOCTYPE html >
<html >
<head>
<meta charset="utf-8">

<title>吾酷羽协</title>
<link rel="stylesheet" type="text/css" href="<?php echo STATIC_PATH; ?>/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo STATIC_PATH; ?>/css/index.css">
<link rel="stylesheet" type="text/css" href="<?php echo STATIC_PATH; ?>/css/font.css">
<script type="text/javascript" src = "<?php echo STATIC_PATH; ?>/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src = "<?php echo STATIC_PATH; ?>/js/bootstrap.min.js"></script>
<script type="text/javascript" src = "<?php echo STATIC_PATH; ?>/js/index.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
	<div class="container margin-top">
		<div class="row">
			<div class="col-md-offset-1 col-md-10 col-sm-12">
				<div class="row">
					<div class="col-md-5 col-sm-9 col-xs-9 margin">
						<img src="<?php echo STATIC_PATH; ?>/image/yx.jpg" height="120px" width="100%">
					</div>
					<div class="col-md-5"></div>
					<div class="col-md-offset-5 col-md-2 col-sm-3 col-xs-3 margin">
						后台管理系统|<?php echo $admin; ?>							
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-offset-1 col-md-10 col-sm-12">
				<nav class="navbar navbar-default" role="navigation" style="margin:0;padding: 0">
				    <div class="container-fluid"> 
				    <div class="navbar-header">
				        <button type="button" class="navbar-toggle" data-toggle="collapse"
				                data-target="#example-navbar-collapse">
				            <span class="sr-only">切换导航</span>
				            <span class="icon-bar"></span>
				            <span class="icon-bar"></span>
				            <span class="icon-bar"></span>
				        </button>
				        <a class="navbar-brand" href="<?php echo url('Admin/index'); ?>">后台管理</a>
				    </div>
				    <div class="collapse navbar-collapse" id="example-navbar-collapse">
				        <ul class="nav navbar-nav">
				            <li><a href="<?php echo url('Admin/match'); ?>">最新赛况</a></li>
				            <li><a href="<?php echo url('Admin/active'); ?>">活动预告</a></li>
				            <li><a href="<?php echo url('Admin/user'); ?>">用户管理</a></li>
				            <li><a href="<?php echo url('Admin/alluser'); ?>">所有用户</a></li>
				            <li><a href="<?php echo url('Admin/common'); ?>">当前拼场</a></li>
				        </ul>
				    </div>
				    </div>
				</nav>
			</div>
		</div>
	</div>
	<div class="row margin-top padding-bottom">
		<div class="col-md-offset-2 col-md-7 col-xs-12">
			<form class="form-horizontal" role="form" style="padding: 10px" method="get" action="<?php echo url('Admin/user_select'); ?>">
				<div class="form-group">
					<label for="lastname" class="col-sm-2 control-label">查找用户</label>
					<div class="col-sm-4" style="margin-right: 0;padding-right: 0">
						<input type="text" class="form-control"  name="username" placeholder="用户名">
					</div>
					<label for="lastname" class="control-label " style="float: left;">或</label>
					<div class="col-sm-4 margin">
						<input type="text" class="form-control"  name="name" placeholder="姓名">
					</div>
					<button type="submit" class="btn btn-default">查找</button>
				</div>
			</form>
		</div>
	</div>
	<?php if($usr!=""): ?>
		<div class="row margin-top padding-bottom">
			<div class="col-md-offset-2 col-md-7 col-xs-12">
				<form class="form-horizontal" role="form" style="padding: 10px" method="post" action="<?php echo url('Admin/user_update'); ?>">
					<div class="form-group">
						<label for="firstname" class="col-sm-3 control-label">姓名</label>
						<div class="col-sm-9">
							<input type="text" class="form-control" name="s_name" value="<?php echo $usr['xm']; ?>" readonly="readonly">
						</div>
					</div>
					<div class="form-group">
						<label for="name" class="col-sm-3 control-label">选择权限</label>
						<div class="col-sm-9">
							<select class="form-control" name="s_type">
								<?php if($usr['lv']==0): ?>
									<option selected="selected">不可教球</option>
									<option>可教球</option>
								<?php else: ?>
									<option>不可教球</option>
									<option selected="selected">可教球</option>
								<?php endif; ?>
							</select>
						</div>
					</div>	
					<div class="form-group">
						<label for="lastname" class="col-sm-3 control-label">微信</label>
						<div class="col-sm-9">
							<input type="text" class="form-control" name="s_wx" value="<?php echo $usr['wx']; ?>">
						</div>
					</div>
					<div class="form-group">
						<label for="lastname" class="col-sm-3 control-label">QQ</label>
						<div class="col-sm-9">
							<input type="text" class="form-control" name="s_qq" value="<?php echo $usr['qq']; ?>">
						</div>
					</div>
					<div class="form-group">
						<label for="lastname" class="col-sm-3 control-label">电话</label>
						<div class="col-sm-9">
							<input type="text" class="form-control" name="s_dh" value="<?php echo $usr['dh']; ?>">
						</div>
					</div>
					<div class="form-group">
						<label for="lastname" class="col-sm-3 control-label">邮箱</label>
						<div class="col-sm-9">
							<input type="text" class="form-control" name="s_email" value="<?php echo $usr['email']; ?>">
						</div>
					</div>	
					<div class="form-group">
						<label for="lastname" class="col-sm-3 control-label">重置密码</label>
						<div class="col-sm-9">
							<input type="text" class="form-control" name="s_psw">
						</div>
					</div>	
					<div class="form-group">
						<div class="col-sm-offset-6 col-xs-offset-4 col-sm-10">
							<button type="submit" class="btn btn-default">更新</button>
						</div>
					</div>

				</form>
			</div>
		</div>
	<?php endif; ?>
	<div class="home-fixed">
		<img src="<?php echo STATIC_PATH; ?>/image/gzh.jpg" alt="" width="100px" height="100px">
	</div>
	<nav class="navbar navbar-fixed-bottom adjust-footer">
    <div class="container">
        <p class="text-center text-primary">
            Copyright © 北京化工大学吾酷羽协
        </p>
    </div>
</nav>


</body>
</html>
